package com.tianma315.core.code_flag.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.tianma315.core.code_flag.dao.CodeFlagDao;
import com.tianma315.core.code_flag.domain.CodeFlagDO;
import com.tianma315.core.code_flag.service.CodeFlagService;
import com.tianma315.core.common.base.CoreServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



/**
 * 
 * <pre>
 * 查询记录
 * </pre>
 * <small> 2020-02-26 17:10:59 | Aron</small>
 */
@Service
public class CodeFlagServiceImpl extends CoreServiceImpl<CodeFlagDao, CodeFlagDO> implements CodeFlagService {

    @Autowired
    private CodeFlagService codeFlagService;

    @Override
    public CodeFlagDO getCodeFlagByCode(String code) {
        EntityWrapper entityWrapper = new EntityWrapper();
        entityWrapper.eq("code",code);
        CodeFlagDO codeFlagDO = selectOne(entityWrapper);
        return codeFlagDO;
    }
}
